package cn.ds.assets.module.assets.controller.admin.metadataDatasource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;

/**
 * 元数据管理-数据源 Excel VO
 *
 * @author admin
 */
@Data
public class BaseMetadataDatasourceExcelVO {

    @ExcelProperty("主键ID")
    private Long id;

    @ExcelProperty("数据源名称")
    private String name;

    @ExcelProperty("数据源地址,符合JDBC规范")
    private String url;

    @ExcelProperty("数据源账号")
    private String username;

    @ExcelProperty("数据源密码")
    private String password;

    @ExcelProperty("数据源描述")
    private String desc;

    @ExcelProperty("所属数据层,1:原始数据层ODS,2:数据仓库层DW,3:数据集市层DM")
    private Byte dataLayer;

    @ExcelProperty("状态,0:未知,1:正常,-1:异常")
    private Boolean status;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @ExcelProperty("项目空间ID,关联assets_project的id字段")
    private Long projectId;

    @ExcelProperty("数据源类型,1:MySQL, 2:Oracle, 3:Hive, 4:PostgreSQL, 5:SQL Server")
    private Byte type;

}
